DataGetAiDay

 

The 'DataGetAiDay' function returns the AI tag data stored in file.

 

double DataGetAiDay(string tag, int data_type, int year, int mon, int day);

 

Note : Because this function loads the data from a file, it may take a long time to excute this function. If you use this function much, the execution speed of LocalMain program slows down. Therefore, it is better to use this function only when it is absolutely necessary.

 

Parameters
string tag : AI tag name

int data_type : Data type that you want to load (0 = Average Value, 1 = Minimum Value, 2 = Maximum Value, 3 = Integration Value, 4 = Maximum Value of the day - Mxaimum Value of the previous day)

int year : Year

int mon : Month

int day : Day

 

Return Value

Tag data of the specified day

 

Example 1

@DataGetAiDay("AI_0000", 0, 1999, 12, 9);

Description : The 'AI_0000' average value of 9th December 1999 is loaded.

 

Example 2

@DataGetAiDay("AI_0000", 1, 1999, 12, 9);

Description : The 'AI_0000' minimum value of 9th December 1999 is loaded.

 

Relate items)

@DataGetAiHour()

@DataGetAiMin()

@DataGetAiMon()

@DataGetAiYear()

@DataGetDiDay()

@DataGetDiHour()

@DataGetDiMin()

@DataGetDiMon()

@DataGetDiYear()

@DataSetAiHour()

@DataSetAiMin()

Example Project to load the data of the specified time